package com.medical.sys.service;

import com.medical.common.TreeNode;
import com.medical.sys.model.Resource;
import com.medical.sys.model.ResourceRole;
import com.medical.sys.model.Role;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/10/17.
 */
public interface ResourceService {
    public List<TreeNode> getList();
    public Resource getResource(String resourceId);
    public void saveResource(Resource resource);
    public void updateResource(Resource resource);
    public void deleteResource(String resourceId);
    public void deleteResource(String resourceId,Boolean administrator);
    public void moveResource(String id, String targetId, String moveType);
    public List<Resource> getResourcesByRoleId(String roleId);
    public List<Resource> getResources();
    public List<Resource> getResources(Boolean administrator);
    public List<Role> getRole(String resourceId);
    public List<Resource> getResourceList();

}
